---
title: "if · RUAL Documentation"
description: "Conditional branching for datatable connection (if.. then.. else..)"
canonical: https://docs.rual.nl/block-types/state ui/statedatatableconnection_branch
language: en
---

# if

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Connection Type

This block connects from a `statedatatableconnection` type block. Make sure to connect this block to the appropriate left-hand side connection.

Conditional branching for datatable connection (if.. then.. else..)

- true required `statedatatableconnection`

- false required `statedatatableconnection`

- boolean required `condition`

- statedatatableconnection `statedatatableconnection`

A typical wiring for [if](https://docs.rual.nl/block-types/state%20ui/statedatatableconnection_branch): the `statedatatableconnection` out pin feeds [datatable](https://docs.rual.nl/block-types/state%20ui/state_datatable).

![Studio canvas example for the if block: typical wiring for if.](https://docs.rual.nl/canvas-examples/statedatatableconnection_branch.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
